package com.yang.dao;

import com.yang.entity.LiverRelationEntity;
import com.yang.entity.OrderFormEntity;
import com.yang.entity.RelationEntity;

import java.util.List;

public interface CheckOutDao {

    /**
     * 找到关系表
     * @param roomId
     * @param status
     * @return
     */
    public LiverRelationEntity selectLiveByRoomIdAndStatus(long roomId,String status);

    /**
     *
     * @param orderFormEntity
     * @return
     */
    public boolean updataOrder(OrderFormEntity orderFormEntity);

    /**
     * 查找LiverList
     * @param orderId
     * @return
     */
    public List<LiverRelationEntity> selectLiverListByOrderId(long orderId);

    /**
     * 更新liver表
     * @param liverRelationEntity
     * @return
     */
   public boolean updataLiver(LiverRelationEntity liverRelationEntity);

    /**
     * 通过房号查询关系
     * @param roomNum
     * @param status
     * @return
     */
   public List<RelationEntity> selectRelationByRoomNumAndguestStatus(String roomNum,String status);

    /**
     * 通过顾客名找到关系
     * @param name
     * @param status
     * @return
     */
   public List<RelationEntity> selectRelationByNameAndguestStatus(String name,String status);

    /**
     * 通过Id找到order实体
     * @param orderId
     * @return
     */
   public OrderFormEntity selectOrderByOrderId(long orderId);

    /**
     * 通过orderId找到LiverRelation实体类
     * @param orderId
     * @return
     */
   public List<LiverRelationEntity> selectLiverRelationByOrderId(long orderId);
}
